package com.sa07.db;

/**
 * 数据库类型
 * 
 * @author Long.shangbo
 *
 * 2014-2-15 下午7:25:47
 */
public enum DbType {

	ORACLE {
		@Override
		protected String getDbTypeName() {
			return "oracle";
		}
	},
	
	MYSQL {
		@Override
		protected String getDbTypeName() {
			return "mysql";
		}
	},
	
	SYBASE_IQ {
		@Override
		protected String getDbTypeName() {
			return "sybase_iq";
		}
	},
	
	SYBASE_ASA {
		@Override
		protected String getDbTypeName() {
			return "sybase_asa";
		}
	},
	
	DB2 {
		@Override
		protected String getDbTypeName() {
			return "db2";
		}
	},
	
	SQLITE {
		@Override
		protected String getDbTypeName() {
			return "sqlite";
		}
	},
	
	H2 {
		@Override
		protected String getDbTypeName() {
			return "h2";
		}
	},
	
	DERBY {
		@Override
		protected String getDbTypeName() {
			return "derby";
		}
	},
	
	SQLSERVER {
		@Override
		protected String getDbTypeName() {
			return "sqlserver";
		}
	};
	
	protected abstract String getDbTypeName();
	
}
